\subsection{Salida estándar y pipes}

\subsubsection{Stdout}
\begin{enumerate}[a)]
\item 
  \begin{verbatimtab}
  ls -R /etc/ > /home/santiago/tp/config
  \end{verbatimtab}

\item
  \begin{verbatimtab}
  wc -l /home/santiago/tp/config
  682 config

  wc -w /home/santiago/tp/config
  611 config

  wc -m /home/santiago/tp/config
  7916 config
  \end{verbatimtab}

\item
  \begin{verbatimtab}
  sort /etc/passwd >> /home/santiago/tp/config
  \end{verbatimtab}  

\item
  \begin{verbatimtab}
  wc -l /home/santiago/tp/config
  706 config
  wc -w /home/santiago/tp/config
  640 config
  wc -m /home/santiago/tp/config
  8900 config
  \end{verbatimtab}
\end{enumerate}

\subsubsection{Pipes}
  \begin{verbatimtab}
  ls -lh /usr/bin/a* | grep apt
  \end{verbatimtab}
  
  \begin{scriptsize}
   \begin{verbatimtab}
  -rwxr-xr-x 1 root root  63K 2009-04-17 13:30 /usr/bin/apt-cache
  -rwxr-xr-x 1 root root  18K 2009-04-17 13:30 /usr/bin/apt-cdrom
  -rwxr-xr-x 1 root root 9.9K 2009-04-17 13:30 /usr/bin/apt-config
  -rwxr-xr-x 1 root root  22K 2009-04-17 13:30 /usr/bin/apt-extracttemplates
  -rwxr-xr-x 1 root root 187K 2009-04-17 13:30 /usr/bin/apt-ftparchive
  -rwxr-xr-x 1 root root 139K 2009-04-17 13:30 /usr/bin/apt-get
  -rwxr-xr-x 1 root root 2.2M 2008-04-04 06:56 /usr/bin/aptitude
  -rwxr-xr-x 1 root root 1.9K 2008-04-04 06:56 /usr/bin/aptitude-create-state-bundle
  -rwxr-xr-x 1 root root 3.0K 2008-04-04 06:56 /usr/bin/aptitude-run-state-bundle
  -rwxr-xr-x 1 root root 5.0K 2009-04-17 13:30 /usr/bin/apt-key
  -rwxr-xr-x 1 root root 2.2K 2009-04-17 13:30 /usr/bin/apt-mark
  -rwxr-xr-x 1 root root  26K 2009-04-17 13:30 /usr/bin/apt-sortpkgs
   \end{verbatimtab}
  \end{scriptsize}

  \begin{verbatimtab}
  ls -lh /usr/bin/a* | grep apt | wc -l
  12
  ls -lh /usr/bin/a* | grep apt | wc -w
  96
  ls -lh /usr/bin/a* | grep apt | wc -m
  817
  \end{verbatimtab}
